package com.ma5d.driver.customer.client;

import com.ma5d.driver.common.result.Result;
import com.ma5d.driver.model.form.UpdateWxPhoneForm;
import com.ma5d.driver.model.vo.customer.CustomerLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "service-customer")
public interface CustomerInfoFeignClient {
    @GetMapping("customer/info/login/{code}")
    public Result<Long> login(@PathVariable String code);

    @GetMapping("customer/info/getCustomerLoginInfo/{customerId}")
    public Result<CustomerLoginVo> getCustomerLoginInfo(@PathVariable Long customerId);

    @PostMapping("customer/info/updateWxPhoneNumber")
    public Result<Boolean> updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);
}
